<?
session_start();
include('conn.php');
$qry1 = "SELECT * from subdealermast where status=0 and subid <> 1 order by subid desc";

$qry = mysql_query($qry1);
$data = array();
$i=1;
while($rows = mysql_fetch_array($qry))
{
	$data[] = array("Sr_NO" => $i++,
					"subname" => $rows['subname'],
				  "Address" => $rows['address'],
				  "City" => $rows['city'],
                  "subid"=> $rows['subid'] );
}
echo json_encode($data);
?>